﻿# sendtest.py
# setup multiple connection to server

import socket
import sys

s = []
port = 1080
num = int(sys.argv[1])
for i in xrange(num):
	s.append(socket.socket(socket.AF_INET, socket.SOCK_STREAM))

for i in xrange(num):
	s[i].connect(('localhost', port))
	s[i].send("test"+str(i))

